package com.entity;

import java.io.Serializable;

/**
 * building
 * @author 
 */
public class Building implements Serializable {
    private Integer buildingid;

    private String buildingname;

    private String buildingnumber;

    private Integer floor;

    private Integer count;

    private Integer totalarea;

    private String descripe;

    private Integer hid;

    private static final long serialVersionUID = 1L;

    public Integer getBuildingid() {
        return buildingid;
    }

    public void setBuildingid(Integer buildingid) {
        this.buildingid = buildingid;
    }

    public String getBuildingname() {
        return buildingname;
    }

    public void setBuildingname(String buildingname) {
        this.buildingname = buildingname;
    }

    public String getBuildingnumber() {
        return buildingnumber;
    }

    public void setBuildingnumber(String buildingnumber) {
        this.buildingnumber = buildingnumber;
    }

    public Integer getFloor() {
        return floor;
    }

    public void setFloor(Integer floor) {
        this.floor = floor;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getTotalarea() {
        return totalarea;
    }

    public void setTotalarea(Integer totalarea) {
        this.totalarea = totalarea;
    }

    public String getDescripe() {
        return descripe;
    }

    public void setDescripe(String descripe) {
        this.descripe = descripe;
    }

    public Integer getHid() {
        return hid;
    }

    public void setHid(Integer hid) {
        this.hid = hid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Building other = (Building) that;
        return (this.getBuildingid() == null ? other.getBuildingid() == null : this.getBuildingid().equals(other.getBuildingid()))
            && (this.getBuildingname() == null ? other.getBuildingname() == null : this.getBuildingname().equals(other.getBuildingname()))
            && (this.getBuildingnumber() == null ? other.getBuildingnumber() == null : this.getBuildingnumber().equals(other.getBuildingnumber()))
            && (this.getFloor() == null ? other.getFloor() == null : this.getFloor().equals(other.getFloor()))
            && (this.getCount() == null ? other.getCount() == null : this.getCount().equals(other.getCount()))
            && (this.getTotalarea() == null ? other.getTotalarea() == null : this.getTotalarea().equals(other.getTotalarea()))
            && (this.getDescripe() == null ? other.getDescripe() == null : this.getDescripe().equals(other.getDescripe()))
            && (this.getHid() == null ? other.getHid() == null : this.getHid().equals(other.getHid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBuildingid() == null) ? 0 : getBuildingid().hashCode());
        result = prime * result + ((getBuildingname() == null) ? 0 : getBuildingname().hashCode());
        result = prime * result + ((getBuildingnumber() == null) ? 0 : getBuildingnumber().hashCode());
        result = prime * result + ((getFloor() == null) ? 0 : getFloor().hashCode());
        result = prime * result + ((getCount() == null) ? 0 : getCount().hashCode());
        result = prime * result + ((getTotalarea() == null) ? 0 : getTotalarea().hashCode());
        result = prime * result + ((getDescripe() == null) ? 0 : getDescripe().hashCode());
        result = prime * result + ((getHid() == null) ? 0 : getHid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", buildingid=").append(buildingid);
        sb.append(", buildingname=").append(buildingname);
        sb.append(", buildingnumber=").append(buildingnumber);
        sb.append(", floor=").append(floor);
        sb.append(", count=").append(count);
        sb.append(", totalarea=").append(totalarea);
        sb.append(", descripe=").append(descripe);
        sb.append(", hid=").append(hid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}